package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Guaranteebill;
import cn.wolfcode.crm.mapper.GuaranteebillMapper;
import cn.wolfcode.crm.service.IGuaranteebillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GuaranteebillServiceImpl implements IGuaranteebillService{
    @Autowired
    private GuaranteebillMapper guaranteebillMapper;

    public int deleteByPrimaryKey(Long id) {
        return guaranteebillMapper.deleteByPrimaryKey(id);
    }

    public int insert(Guaranteebill record) {
        return guaranteebillMapper.insert(record);
    }

    public Guaranteebill selectByPrimaryKey(Long id) {
        return guaranteebillMapper.selectByPrimaryKey(id);
    }

    public List<Guaranteebill> selectAll() {
        return guaranteebillMapper.selectAll();
    }

    public int updateByPrimaryKey(Guaranteebill record) {
        return guaranteebillMapper.updateByPrimaryKey(record);
    }
}
